package de.smarthome.controllable;

import org.json.JSONObject;

import android.util.Log;

public class LPLight {

	/*
	 * -----------------dining light-----------------
	 */
	public static JSONObject diningLightOn() {
		JSONObject msg = new JSONObject(JsonMapBuilder.buildJsonMap("dining_light_on"));
		Log.d("JSONDemo", msg.toString());
		return msg;
	}
	

	public static JSONObject diningLightOff() {
		JSONObject msg = new JSONObject(JsonMapBuilder.buildJsonMap("dining_light_off"));
		Log.d("JSONDemo", msg.toString());
		return msg;
	}
	
	public static JSONObject diningLightColor(int color) {
		JSONObject msg = new JSONObject(JsonMapBuilder.buildJsonMap("dining_light_color", color));
		Log.d("JSONDemo", msg.toString());
		return msg;
	}
	
	/*
	 * -----------------lounge light-----------------
	 */
	public static JSONObject loungeLightOn() {
		JSONObject msg = new JSONObject(JsonMapBuilder.buildJsonMap("lounge_light_on"));
		Log.d("JSONDemo", msg.toString());
		return msg;
	}

	public static JSONObject loungeLightOff() {
		JSONObject msg = new JSONObject(JsonMapBuilder.buildJsonMap("lounge_light_off"));
		Log.d("JSONDemo", msg.toString());
		return msg;
	}
	
	public static JSONObject loungeLightColor(int color) {
		JSONObject msg = new JSONObject(JsonMapBuilder.buildJsonMap("lounge_light_color", color));
		Log.d("JSONDemo", msg.toString());
		return msg;
	}
	
	/*
	 * -----------------kitchen cooking light-----------------
	 */
	public static JSONObject kitchenCookingLightOn() {
		JSONObject msg = new JSONObject(JsonMapBuilder.buildJsonMap("kitchen_cooking_ligh_on"));
		Log.d("JSONDemo", msg.toString());
		return msg;
	}

	public static JSONObject kitchenCookingLightOff() {
		JSONObject msg = new JSONObject(JsonMapBuilder.buildJsonMap("kitchen_cooking_light_off"));
		Log.d("JSONDemo", msg.toString());
		return msg;
	}
	
	public static JSONObject kitchenCookingLightColor(int color) {
		JSONObject msg = new JSONObject(JsonMapBuilder.buildJsonMap("kitchen_cooking_light_color", color));
		Log.d("JSONDemo", msg.toString());
		return msg;
	}
	
	/*
	 * -----------------kitchen main light-----------------
	 */
	public static JSONObject kitchenMainLightOn() {
		JSONObject msg = new JSONObject(JsonMapBuilder.buildJsonMap("kitchen_main_light_on"));
		Log.d("JSONDemo", msg.toString());
		return msg;
	}

	public static JSONObject kitchenMainLightOff() {
		JSONObject msg = new JSONObject(JsonMapBuilder.buildJsonMap("kitchen_main_light_off"));
		Log.d("JSONDemo", msg.toString());
		return msg;
	}
	
	public static JSONObject kitchenMainLightColor(int color) {
		JSONObject msg = new JSONObject(JsonMapBuilder.buildJsonMap("kitchen_main_light_color", color));
		Log.d("JSONDemo", msg.toString());
		return msg;
	}
	
	/*
	 * -----------------corridor light-----------------
	 */
	public static JSONObject corridorLightOn() {
		JSONObject msg = new JSONObject(JsonMapBuilder.buildJsonMap("corridor_light_on"));
		Log.d("JSONDemo", msg.toString());
		return msg;
	}

	public static JSONObject corridorLightOff() {
		JSONObject msg = new JSONObject(JsonMapBuilder.buildJsonMap("corridor_light_off"));
		Log.d("JSONDemo", msg.toString());
		return msg;
	}
	
	public static JSONObject corridorLightColor(int color) {
		JSONObject msg = new JSONObject(JsonMapBuilder.buildJsonMap("corridor_light_color", color));
		Log.d("JSONDemo", msg.toString());
		return msg;
	}
	
	/*
	 * -----------------sleeping light-----------------
	 */
	public static JSONObject sleepingLightOn() {
		JSONObject msg = new JSONObject(JsonMapBuilder.buildJsonMap("sleeping_light_on"));
		Log.d("JSONDemo", msg.toString());
		return msg;
	}

	public static JSONObject sleepingLightOff() {
		JSONObject msg = new JSONObject(JsonMapBuilder.buildJsonMap("sleeping_light_off"));
		Log.d("JSONDemo", msg.toString());
		return msg;
	}
	
	public static JSONObject sleepingLightColor(int color) {
		JSONObject msg = new JSONObject(JsonMapBuilder.buildJsonMap("sleeping_light_color", color));
		Log.d("JSONDemo", msg.toString());
		return msg;
	}
	
	/*
	 * -----------------bathroom light-----------------
	 */
	public static JSONObject bathroomLightOn() {
		JSONObject msg = new JSONObject(JsonMapBuilder.buildJsonMap("bathroom_light_on"));
		Log.d("JSONDemo", msg.toString());
		return msg;
	}
	
	public static JSONObject bathroomLightOff() {
		JSONObject msg = new JSONObject(JsonMapBuilder.buildJsonMap("bathroom_light_off"));
		Log.d("JSONDemo", msg.toString());
		return msg;
	}
	
	public static JSONObject bathroomLightColor(int color) {
		JSONObject msg = new JSONObject(JsonMapBuilder.buildJsonMap("bathroom_light_color", color));
		Log.d("JSONDemo", msg.toString());
		return msg;
	}

	

	

}
